//导入mogoose
const mongoose = require('mongoose')
const shortid = require('shortid')
//创建文档的结构对象
//设置集合中文档的属性以及属性值的类型
let UserSchema = new mongoose.Schema({
    //标题
    username:String,
    password:String
});

//6. 创建模型对象  对文档操作的封装对象
let UserModel = mongoose.model('users', UserSchema);

//暴露模型对象
module.exports = UserModel